package com.cdh.edu.feign.fallback;

import com.cdh.edu.feign.VodService;
import com.cdh.utils.result.Restful;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class VodServiceFallBack implements VodService {

    @Override
    public Restful removeVideo(String videoId) {
        log.info("熔断保护:视频删除失败");
        return Restful.error();
    }

    @Override
    public Restful removeBatch(List<String> videoList) {
        log.info("熔断保护:批量视频删除失败");
        return Restful.error();
    }
}
